/*

	CompanyDetail Class take the Detail about  Company and Display when Paricular record Deatils
*/




import java.util.*;
public class CompanyDetail extends Employee
{
	String Cname,Post,City;
	
	public CompanyDetail()
	{
		super();
		
	}

	/*
		get the detail of company 
	*/
	public void GetCompanyData()
	{
		Scanner s = new Scanner(System.in);
		System.out.print("\n Enter the Name of company :");
		Cname=s.next();
		System.out.print("\n Enter the Post of Employee :");
		Post=s.next();
		System.out.print("\n Enter the city of company :");
		City=s.next();		
	}

	
	/*
		Display the detail of company 
	*/
	public void Display(String com,String str,String city)
	{
		System.out.print("   "+com);
		System.out.print("   "+str);
		System.out.print("    "+city);
				
	}

	
}
